package com.youlai.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description ="故障分页对象")
@Data
public class CoursePageVO {
    @Schema(description="故障ID")
    private Long id;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description="故障内容")
    private String content;

    @Schema(description = "考核周期")
    private String monthName;

    @Schema(description="排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "记录数")
    private Integer totalCount;

    @Schema(description = "通过数")
    private Integer successCount;

    @Schema(description = "故障数")
    private Integer failCount;

    @Schema(description = "通过率")
    private String successRate;
}
